import VueRouter from 'vue-router'
//2
import homeContainer from './components/tabbar/homeContainer.vue'
import  memberContainer from './components/tabbar/memberContainer.vue'
import shopcarContainer from './components/tabbar/shopcarContainer.vue'
import searchContainer from './components/tabbar/searchContainer.vue'
import newsList from './components/news/newsList.vue'
import newInfo from './components/news/newsInfo.vue'
import photoList from './components/photos/photoList.vue'
import photoInfo from './components/photos/photoInfo.vue'
import goodsList from './components/gooods/gooodsList.vue'
import goodsinfo from './components/gooods/goodsinfo.vue'
import goodsdesc from './components/gooods/goodsdesc.vue'
import goodscomment from './components/gooods/goodscomment.vue'

//3
var router=new VueRouter({
    routes:[
        {path:'/',component:homeContainer},
        {path:'/home',component:homeContainer},
        {path:'/member',component:memberContainer},
        {path:'/shopcar',component:shopcarContainer},
        {path:'/search',component:searchContainer},
        {path:'/home/newsList',component:newsList},
        {path:'/home/newsInfo/:id',component:newInfo},
        {path:'/home/photoList', component:photoList},
        {path:'/home/photoInfo/:id',component:photoInfo},
        {path:'/home/goodsList',component:goodsList},
        {path:'/home/goodsinfo/:id',component:goodsinfo,name:'goodsinfo'},
        {path:'/home/gooddesc/:id',component:goodsdesc,name:'goodsdesc'},
        {path:'/home/goodscomment/:id',component:goodscomment,name:'goodscomment'}

    ],
    linkActiveClass:' mui-active'
})
export default router